/*
    三元运算符
        有局限性
 */
public class OperatorDemo08 {
    public static void main(String[] args) {

        //三元运算符
        int a = 10;
        int b = 20;
        int max = (a > b)? a : b;
        System.out.println(max);
    }
}
